-
Notifications
You must be signed in to change notification settings - Fork 110
Use TypeScript for Charts components #5051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+1,031
−826
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. OpenSSF Scorecard
Scanned Files
|
daniele-mng
reviewed
Jan 6, 2026
daniele-mng
reviewed
Jan 6, 2026
abe1ae3 to
d9b9dd3
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5051 +/- ##
==========================================
- Coverage 75.68% 75.59% -0.10%
==========================================
Files 1131 1132 +1
Lines 29643 29647 +4
Branches 8830 8846 +16
==========================================
- Hits 22436 22411 -25
- Misses 6447 6471 +24
- Partials 760 765 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d9b9dd3 to
4adce76
Compare
daniele-mng
approved these changes
Jan 8, 2026
Add a ToString type which is used at several places already.
The function can handle both already.
Both packages are used for the charts.
These two components are used outside of the Legend component and therefore should be in their own module.
VxAxis allows for string only. We need to allow ToString for LazyTranslation too.
Using an index as key is not a good solution because the index might belong to a different data element in the next render.
4adce76 to
62fd26b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Use TypeScript for Charts components
Why
Convert all chart components to TypeScript for better code quality and early type checks.
References
https://jira.greenbone.net/browse/GEA-1496